test: use common.mustCall in http test#17439
test: use common.mustCall in http test#17439mithunsasidharan wants to merge 1 commit intonodejs:masterfrom mithunsasidharan:pr_9
Conversation
apapirovski
left a comment
There was a problem hiding this comment.
This test should instead be refactored to use common.mustCall for the response function passed to http.createServer. The nrequests_completed and nrequests_expected variables should still be removed. The server.close() can just be unconditional.
|
@apapirovski : Thanks for the feedback. I've updated the PR to include the recommended changes. Kindly review the PR now. |
apapirovski
left a comment
There was a problem hiding this comment.
LGTM but the commit message & PR title should be updated
test-http-malformed-request to use countdowntest-http-malformed-request to use common#mustCall
test-http-malformed-request to use common#mustCalltest-http-malformed-request to use common.mustCall
|
@apapirovski : Thats's done too.. Thanks. |
|
The commit message is still too long. Something like |
test-http-malformed-request to use common.mustCall|
@apapirovski : Thanks for the feedback. I've updated the commit message. Kindly review the PR now. |
|
Landing... |
|
Thank you for your contribution, landed in f6b2839. |
PR-URL: #17439 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #17439 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #17439 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #17439 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #17439 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refactored the test case in
test-http-malformed-requestto usecommon.mustCall, as per issue #17169Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test